﻿
using System;
using Newtonsoft.Json;

//Nhibernate Code Generation Template 1.0
//author:MythXin
//blog:www.cnblogs.com/MythXin
//Entity Code Generation Template
namespace Cms.Model
{
    //自定义表单子表
    public class Sys_Selfform_Detail
    {
        /// <summary>
        /// ID
        /// </summary>
        public virtual string Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public virtual string Caption { get; set; }
        /// <summary>
        /// 表名
        /// </summary>
        public virtual string Tablename { get; set; }
        /// <summary>
        /// 视图名
        /// </summary>
        public virtual string Viewname { get; set; }
        /// <summary>
        /// 查询脚本
        /// </summary>
        public virtual string Sql { get; set; }
        /// <summary>
        /// 关键字字段
        /// </summary>
        public virtual string Keyfield { get; set; }
        /// <summary>
        /// 序号字段
        /// </summary>
        public virtual string Displayfield { get; set; }
        /// <summary>
        /// 子表中与主表关联字段
        /// </summary>
        public virtual string Detailfield { get; set; }
        /// <summary>
        /// 主表关联字段
        /// </summary>
        public virtual string Masterfield { get; set; }
        /// <summary>
        /// 表单编号
        /// </summary>
        //public virtual string Formid { get; set; }    
        [JsonIgnoreAttribute]
        public virtual Sys_Selfform SelfForm { get; set; }
    }
}
